var color = ['green','pink','orange','black']

var i = color.findIndex(item=>{
   return item==='orange'
  // console.log(item)
})

console.log(i)